package com.kerwin.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class NacosPaymentController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/nacos/payment/{id}")
    public String getPayment(@PathVariable("id") Long id){
        return "Nacos注册，id：" + id + "，server-port：" + serverPort;
    }
}
